package com.wlps.mapper;

import com.wlps.entity.CommodityWarehouse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wlps.vo.sendcenter.warehouse.InOutVo;
import com.wlps.vo.sendcenter.warehouse.WarehouseSettingVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商品-库房表(commodity_warehouse)（中间表） Mapper 接口
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
@Repository
public interface CommodityWarehouseMapper extends BaseMapper<CommodityWarehouse> {


    /**
     * 查询出入单（入库单）
     *
     * @return
     */
    List<InOutVo> selectByPurchaseReceipt();

    /**
     * 查询出入单（出库单）
     *
     * @return
     */
    List<InOutVo> selectByReturnOutOfStock();

    /**
     * 查询商品是否进行库房设置
     *
     * @return
     */
    List<WarehouseSettingVo> selectByCommodityAndWarehouse();

}
